/*
 * Kobold2D™ --- http://www.kobold2d.org
 *
 * Copyright (c) 2010-2011 Steffen Itterheim. 
 * Released under MIT License in Germany (LICENSE-Kobold2D.txt).
 */

#import "cocos2d.h"
#import "Box2D.h"
#import "GLES-Render.h"
#import "ContactListener.h"
#import "AbstractLayer.h"
#import "MathHelper.h"
#import "ExplodeHelper.h"
enum
{
	kTagBatchNode,
};

@interface PhysicsLayer : AbstractLayer
{
	b2World* world;
	ContactListener* contactListener;
	GLESDebugDraw* debugDraw;
    BOOL _accelerometerActive;
}

- (void)initWorld;
- (void)createWorldWithPlane:(float)width pos:(CGPoint)pos;
- (void)createWorldWithSpace;
- (void)createWorldwithFixScreen;

- (void) enableBox2dDebugDrawing;
- (b2Vec2) toMeters:(CGPoint)point;
- (CGPoint) toPixels:(b2Vec2)vec;



@end
